home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1998 #11 / PCDIREKT_1198.bin / SHOWDATA / ECKESHOP.DXR / 00030_eintragen und optionen.ls < prev    next >
Encoding:
Text File  |  1998-03-20  |  5.5 KB  |  161 lines

  1. on eintragen
  2.   global AnzahlBestellungen
  3.   set startsprite to 15
  4.   if AnzahlBestellungen = 8 then
  5.     alert("Bitte drucken Sie jetzt Ihr Bestellformular und versuchen Sie es dann erneut.")
  6.     exit
  7.   end if
  8.   set AnzahlBestellungen to AnzahlBestellungen + 1
  9.   repeat with i = 0 to 3
  10.     set x to the memberNum of sprite (startsprite + i)
  11.     set temp to the text of member x
  12.     set the text of member (x + 10) to temp & RETURN & the text of member (x + 10)
  13.   end repeat
  14.   set y to 0.0
  15.   repeat with j = 1 to the number of lines in field "GPreis2"
  16.     if line j of field "GPreis2" = " " then
  17.       exit repeat
  18.     end if
  19.     set y to y + float(value(line j of field "GPreis2"))
  20.     put y
  21.   end repeat
  22.   put chckStr(y) into field "Summe"
  23. end
  24.  
  25. on kappeeintragen
  26.   global AnzahlBestellungen
  27.   set startsprite to 15
  28.   if AnzahlBestellungen = 8 then
  29.     alert("Bitte drucken Sie jetzt Ihr Bestellformular und versuchen Sie es dann erneut.")
  30.     exit
  31.   end if
  32.   if (the hilite of member "emailOption" = 1) and (the text of member "emailAdresse" = EMPTY) then
  33.     alert("Bitte tragen Sie Ihre eMail-Adresse in das vorgesehene Feld ein!", "OK", 1)
  34.   else
  35.     if (the hilite of member "emailOption" = 0) and (the text of member "emailAdresse" <> EMPTY) and (the text of member "emailAdresse" <> " ") then
  36.       alert("Wenn Sie eine bestickte Kappe w├╝nschen, klicken Sie bitte das K├ñstchen an.", "OK", 1)
  37.     else
  38.       set AnzahlBestellungen to AnzahlBestellungen + 1
  39.       repeat with i = 0 to 3
  40.         set x to the memberNum of sprite (startsprite + i)
  41.         set temp to the text of member x
  42.         if (i = 1) and the hilite of member "emailOption" then
  43.           set temp to temp & " " & the text of member "emailAdresse" & "@aol.com"
  44.         end if
  45.         set the text of member (x + 10) to temp & RETURN & the text of member (x + 10)
  46.       end repeat
  47.       set y to 0.0
  48.       repeat with j = 1 to the number of lines in field "GPreis2"
  49.         if line j of field "GPreis2" = " " then
  50.           exit repeat
  51.         end if
  52.         set y to y + float(value(line j of field "GPreis2"))
  53.       end repeat
  54.       put chckStr(y) into field "Summe"
  55.     end if
  56.   end if
  57. end
  58.  
  59. on jackeeintragen
  60.   global AnzahlBestellungen
  61.   set startsprite to 15
  62.   if AnzahlBestellungen = 8 then
  63.     alert("Bitte drucken Sie jetzt Ihr Bestellformular und versuchen Sie es dann erneut.")
  64.     exit
  65.   end if
  66.   if (the hilite of member "sizeS" = 0) and (the hilite of member "sizeM" = 0) and (the hilite of member "sizeL" = 0) and (the hilite of member "sizeXL" = 0) then
  67.     alert("Bitte kreuzen Sie die gew├╝nschte Gr├╢├ƒe an!", "OK", 1)
  68.   else
  69.     set AnzahlBestellungen to AnzahlBestellungen + 1
  70.     repeat with i = 0 to 3
  71.       set x to the memberNum of sprite (startsprite + i)
  72.       set temp to the text of member x
  73.       if i = 1 then
  74.         if the hilite of member "sizeS" then
  75.           set temp to temp & ", S"
  76.         else
  77.           if the hilite of member "sizeM" then
  78.             set temp to temp & ", M"
  79.           else
  80.             if the hilite of member "sizeL" then
  81.               set temp to temp & ", L"
  82.             else
  83.               if the hilite of member "sizeXL" then
  84.                 set temp to temp & ", XL"
  85.               end if
  86.             end if
  87.           end if
  88.         end if
  89.       end if
  90.       set the text of member (x + 10) to temp & RETURN & the text of member (x + 10)
  91.     end repeat
  92.     set y to 0.0
  93.     repeat with j = 1 to the number of lines in field "GPreis2"
  94.       if line j of field "GPreis2" = " " then
  95.         exit repeat
  96.       end if
  97.       set y to y + float(value(line j of field "GPreis2"))
  98.     end repeat
  99.     put chckStr(y) into field "Summe"
  100.   end if
  101. end
  102.  
  103. on radioSizes
  104.   set nm to the memberNum of sprite the clickOn
  105.   repeat with i = 0 to 4
  106.     set x to the number of member "sizeS" + i
  107.     if x <> nm then
  108.       set the hilite of member x to 0
  109.     end if
  110.   end repeat
  111.   set the hilite of member nm to 1
  112. end
  113.  
  114. on shirtEintragen
  115.   global AnzahlBestellungen
  116.   set startsprite to 15
  117.   if AnzahlBestellungen = 8 then
  118.     alert("Bitte drucken Sie jetzt Ihr Bestellformular und versuchen Sie es dann erneut.")
  119.     exit
  120.   end if
  121.   if (the hilite of member "sizeS" = 0) and (the hilite of member "sizeM" = 0) and (the hilite of member "sizeL" = 0) and (the hilite of member "sizeXL" = 0) and (the hilite of member "sizeXXL" = 0) then
  122.     alert("Bitte kreuzen Sie die gew├╝nschte Gr├╢├ƒe an!", "OK", 1)
  123.   else
  124.     set AnzahlBestellungen to AnzahlBestellungen + 1
  125.     repeat with i = 0 to 3
  126.       set x to the memberNum of sprite (startsprite + i)
  127.       set temp to the text of member x
  128.       if i = 1 then
  129.         if the hilite of member "sizeS" then
  130.           set temp to temp & ", S"
  131.         else
  132.           if the hilite of member "sizeM" then
  133.             set temp to temp & ", M"
  134.           else
  135.             if the hilite of member "sizeL" then
  136.               set temp to temp & ", L"
  137.             else
  138.               if the hilite of member "sizeXL" then
  139.                 set temp to temp & ", XL"
  140.               else
  141.                 if the hilite of member "sizeXXL" then
  142.                   set temp to temp & ", XXL"
  143.                 end if
  144.               end if
  145.             end if
  146.           end if
  147.         end if
  148.       end if
  149.       set the text of member (x + 10) to temp & RETURN & the text of member (x + 10)
  150.     end repeat
  151.     set y to 0.0
  152.     repeat with j = 1 to the number of lines in field "GPreis2"
  153.       if line j of field "GPreis2" = " " then
  154.         exit repeat
  155.       end if
  156.       set y to y + float(value(line j of field "GPreis2"))
  157.     end repeat
  158.     put chckStr(y) into field "Summe"
  159.   end if
  160. end
  161.